package com.cc.blog.controller;

import com.cc.blog.service.RegisterService;
import com.cc.blog.vo.params.RegisterParams;
import com.cc.blog.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/register")
public class RegisterController {

    @Autowired
    private RegisterService registerService;

    @PostMapping
    public Result register(@RequestBody RegisterParams registerParams){
        return registerService.register(registerParams);
    }

}
